﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace myFarm
{
    abstract class Animal : Drawable
    {
        protected int nb_legs, pos_x, pos_y;

        public Animal(int nb_legs, int pos_x, int pos_y, drawable_type drawable_t)
            : base(drawable_t)
        {
            this.nb_legs = nb_legs;
            this.pos_x = pos_x;
            this.pos_y = pos_y;
        }
    }

    class Pony : Animal
    {
        int awesome_lvl;

        public Pony(int pos_x, int pos_y)
            : base(4, pos_x, pos_y, drawable_type.pony)
        {
            Random r = new Random();
            awesome_lvl = r.Next(0, 41);
        }
    }

    class Hen : Animal
    {
        int nb_feathers;

        public Hen(int pos_x, int pos_y)
            : base(2, pos_x, pos_y, drawable_type.hen)
        {
            Random r = new Random();
            nb_feathers = r.Next(301, 2500);
        }
    }   
}
